package com.wen.yygh.hosp.service;

import com.wen.yygh.model.hosp.Schedule;
import com.wen.yygh.vo.hosp.ScheduleOrderVo;
import com.wen.yygh.vo.hosp.ScheduleQueryVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface ScheduleService {
    /**
     * 保存排班列表
     *
     * @param paramMap
     */
    void save(Map<String, Object> paramMap);

    Page<Schedule> findSchedulePage(Integer pageNum, Integer pageSize, ScheduleQueryVo scheduleQueryVo);

    /**
     * 删除排版
     *
     * @param hoscode
     * @param hosScheduleId
     */
    void remove(String hoscode, String hosScheduleId);

    /**
     * 根据医院编号和可是编号获取排版信息
     *
     * @param pageNum  页码
     * @param pageSize 页面大小
     * @param hoscode  医院编号
     * @param depcode  科室编号
     * @return
     */
    Map<String, Object> getScheduleRuleByHoscodeAndDepcode(Long pageNum, Long pageSize, String hoscode, String depcode);

    List<Schedule> getDetailSchedule(String hoscode, String depcode, String workDate);

    Map<String, Object> getBookingScheduleRole(Integer page, Integer limit, String hoscode, String depcode);

    Schedule getScheduleById(String scheduleId);

    ScheduleOrderVo getScheduleOrderVo(String scheduleId);

    //更新排班数据
    void update(Schedule schedule);
}
